/**
 * 
 */
package nl.sportan.samenloop.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @author Bram Wiekens
 *
 */
public class ProgramItem {
	private final static String START_TIME = "startTime";
	private final static String END_TIME = "endTime";
	private final static String TITLE = "title";
	private final static String DESCRIPTION = "description";
	
	
	private String startTime = "";
	private String endTime= "";
	private String title= "";
	private String description= "";
	

	public ProgramItem(JSONObject object) {
		try {
			startTime = object.getString(START_TIME);
			endTime = object.getString(END_TIME);
			title = object.getString(TITLE);
			description = object.getString(DESCRIPTION);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	
	/**
	 * @return the startTime
	 */
	public final String getStartTime() {
		return startTime;
	}
	/**
	 * @param startTime the startTime to set
	 */
	public final void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	/**
	 * @return the endTime
	 */
	public final String getEndTime() {
		return endTime;
	}
	/**
	 * @param endTime the endTime to set
	 */
	public final void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	/**
	 * @return the title
	 */
	public final String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public final void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the description
	 */
	public final String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public final void setDescription(String description) {
		this.description = description;
	}

}
